<?php

namespace Forum\ForumBundle\Entity;

/**
 * @orm:Entity
 * @orm:Table(name="message")
 */
class Message {
    /**
     *
     * @orm:ID
     * @orm:Column(type="integer")
     * @orm:GeneratedValue(strategy="AUTO")
     */
    protected $id_message;

    /**
     *
     * @orm:Column(type="text")
     */
    protected $contenu_message;

    /**
     *
     * @orm:Column(type="datetime")
     */
    protected $date_message;

    /**
     *
     * @orm:ManyToOne(targetEntity="Blog\AccBundle\Entity\Membre", inversedBy="messages")
     * @orm:JoinColumn(name="membre", referencedColumnName="id_membre")
     */
    protected $membre;

    /**
     *
     * @orm:ManyToOne(targetEntity="Topic", inversedBy="messages")
     * @orm:JoinColumn(name="topic", referencedColumnName="id_topic")
     */
    protected $topic;

    public function getId_message() {
        return $this->id_message;
    }

    public function getContenu_message() {
        return $this->contenu_message;
    }

    public function setContenu_message($contenu_message) {
        $this->contenu_message = $contenu_message;
    }

    public function getDate_message() {
        return $this->date_message;
    }

    public function setDate_message($date_message) {
        $this->date_message = $date_message;
    }

    public function getMembre() {
        return $this->membre;
    }

    public function setMembre($membre) {
        $this->membre = $membre;
    }

    public function getTopic() {
        return $this->topic;
    }

    public function setTopic($topic) {
        $this->topic = $topic;
    }


}

?>
